package com.caigou.modules.login.network.api

import com.caigou.comm.base.bean.HttpResult
import com.caigou.comm.base.bean.UserBean
import kotlinx.coroutines.flow.Flow
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Header
import retrofit2.http.POST

/**
 * @author #Suyghur.
 * Created on 2021/09/27
 */
interface HttpMainApiService {

    @POST("/api/user/login")
    fun autoLauncher(@Body body: RequestBody, @Header("Content-type") header: String = "application/json;charset=utf-8"): Flow<HttpResult<UserBean>>

}